package com.cn.lb.config;

import com.cn.lb.route.NacosServerRule;
import com.netflix.loadbalancer.IRule;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author: chenyuncong
 * @Date: 2019/12/6 15:32
 */
//@Configuration
public class RuleConfig {
    public RuleConfig(){
        System.out.println("RuleConfig");
    }


//    @Bean
    public IRule ribbonRulr() {
        return new NacosServerRule();
    }

}
